#include "FacTool.h"
#include "OnlineToolCallBack.h"

#ifdef SYSTEM_SAFE_MODE
static char g_bFacTooLInited = 0;
#endif /* SYSTEM_SAFE_MODE */

void FacTool_Init()
{
	NetSvc_Init();

#ifdef SYSTEM_SAFE_MODE
    g_bFacTooLInited = 1;
#endif /* SYSTEM_SAFE_MODE */

}


void FacTool_SendVideo(void *m_buff,unsigned int Size,time_t time, ENUM_FRAMETYPE Frame_Type)
{
#ifdef SYSTEM_SAFE_MODE
    if (!g_bFacTooLInited) {
        return ;
    }
#endif /* SYSTEM_SAFE_MODE */

	OnlineCapture_Updata(m_buff, Size, time, Frame_Type);
}

void FacTool_SendAudio(unsigned char *m_buffer,unsigned int Length)
{
#ifdef SYSTEM_SAFE_MODE
    if (!g_bFacTooLInited) {
        return ;
    }
#endif /* SYSTEM_SAFE_MODE */

	OnlineAudio_Updata(m_buffer, Length);
}

